import { createStore, createLogger } from 'vuex';
import metaInfo, { IMetaInfoProps } from './modules/metaInfo';
import editor, { IEditorProps } from './modules/editor';

// 全局
export interface IGlobalDataProps {
	metaInfo: IMetaInfoProps;
	editor: IEditorProps;
}

export default createStore({
	modules: {
		metaInfo,
		editor,
	},
	plugins: [createLogger()],
	strict: process.env.NODE_ENV !== 'production',
});
